generate_path = r'D:\IdeaProjects\block'
repo_root = r'D:\IdeaProjects\block'

custom_config = r'D:\IdeaProjects\grand_unified\architecture.yml'
custom_field_name = 'Architecture'

output_file = r"123.docx"

component_map_file=r'block&ipc统计.xlsx'

# PlantUML画图服务器
plantuml_picoweb_server = {
    'ip': '10.126.12.130',  # 服务器地址
    'port': 8003  # 服务器端口号
}


def check_value(value):
    print(value)
    assert value != '' and value is not None, 'Some configuration items are not configured, please check!'


def check_dict_value(my_dict: dict):
    list(map(check_value, my_dict.values()))

list(map(check_value, [generate_path, custom_config, custom_field_name, output_file]))
list(map(check_dict_value, [plantuml_picoweb_server]))
